package org.exhaust.framework.net.common.protocol.handler.idle;

import io.netty.handler.timeout.IdleStateHandler;

import java.util.concurrent.TimeUnit;

/**
 * 客户端写空闲事件，写空闲则调用IdleEvent将心跳发出去
 * channel.pipeline().addLast("ClientWriteIdleStateHandler", new ClientWriteIdleStateHandler());
 * channel.pipeline().addLast("ClientWriteIdleEventHandler", new ClientWriteIdleEventHandler());
 */
public class ChannelWriterIdleStateHandler extends IdleStateHandler {
    public ChannelWriterIdleStateHandler(int writerIdleSeconds) {
        super(0, writerIdleSeconds, 0, TimeUnit.SECONDS);
    }
}
